package com.second.app.designpattern.singleinstance;

/**
 * @Author GYZ
 * @Date 2023/7/27
 * <pre>
 *   懒汉式
 * </pre>
 */
public class SingletonInstance03 {

    private SingletonInstance03() {

    }
    private static SingletonInstance03 instance;

    public static SingletonInstance03 getInstance() {
        if (null == instance) {
            instance = new SingletonInstance03();
        }
        return instance;
    }
}
